using System.Collections.Generic;
using GameFramework.Battle.Core;
using Gameplay.PVE.Entity;
using Gameplay.PVE.Survivor;

namespace Gameplay.PVE.Survivor
{
    public class SearchTarget : SurvivorHavior
    {
        public override ETaskResult Execute(ETaskResult result,bool last)
        {
            unit.SearchTarget();
            if (unit.HasTarget())
            {
                return ETaskResult.Successed;
            }
            else
            {
                return ETaskResult.Failed;
            }
        }
    }
}